]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
kbd-status: Close the menu when switching layouts
authorFlorian Müllner <fmuellner@gnome.org>
Thu, 13 Jan 2011 22:32:20 +0000 (23:32 +0100)
committerFlorian Müllner <fmuellner@gnome.org>
Fri, 14 Jan 2011 06:18:39 +0000 (07:18 +0100)
Layout items in the menu overwrite PopupBaseMenuItem.activate(),
so the menu stays open when selecting a layout from the menu.
Chain up to the parent class' method to make the items behave properly.

https://bugzilla.gnome.org/show_bug.cgi?id=639474

js/ui/status/keyboard.js

index b01e28b6921c055fb61f1470678d2dec8faabed6..df3d1ab5875223d2bc6da2b510f4a5364fecda6a 100644 (file)
@@ -36,6 +36,7 @@ LayoutMenuItem.prototype = {
     },
 
     activate: function(event) {
+        PopupMenu.PopupBaseMenuItem.prototype.activate.call(this);
         this._config.lock_group(this._id);
     }
 };